package com.example.restaurant.controller.form;


import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("菜品新增模型")
public class AddDishsForm {
    //关联菜类id
    @NotNull
    @Min(1)
    private Integer dishTypeId;

    //菜品名
    @NotBlank
    private String dishName;

//    //状态 下架 TAKE_DOWN|上架 USE | 售罄 SOLD_OUT 新增默认下架
//    @NotNull
//    private DishStatus status;
    //价格
    @NotNull
    private double dishPrice;
    //单位
    @NotNull
    private String unit;
    //菜品图片
//    @NotBlank
    private String dishImg = "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png";
    //菜品描述
    @NotBlank
    private String dishDescribe;
//    //已售数量
//    @NotNull
//    private Integer quantity;
    //库存
    @NotNull
    private Integer stock;
    @NotNull
    //关联门店id
    private int storeId;

}
